package com.bp.system.domain;

import com.bp.common.annotation.Excel;
import com.bp.common.core.domain.TreeEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
 * 区域对象 sys_region
 *
 * @author shaominjie
 * @date 2020-08-21
 */
public class SysRegion extends TreeEntity<Long> {
    private static final long serialVersionUID = 1L;

    /** 区域ID */
    private Long regionId;

    /** 区域编号 */
    @Excel(name = "区域编号")
    private String regionCode;

    /** 区域名称 */
    @Excel(name = "区域名称")
    private String regionName;

    /** 区域状态（0正常 1停用） */
    @Excel(name = "区域状态", readConverterExp = "0=正常,1=停用")
    private Integer status;

    public void setRegionId(Long regionId) {
        this.regionId = regionId;
    }

    public Long getRegionId() {
        return regionId;
    }
    public void setRegionCode(String regionCode) {
        this.regionCode = regionCode;
    }

    public String getRegionCode() {
        return regionCode;
    }
    public void setRegionName(String regionName) {
        this.regionName = regionName;
    }

    public String getRegionName() {
        return regionName;
    }
    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("regionId", getRegionId())
            .append("parentId", getParentId())
            .append("ancestors", getAncestors())
            .append("regionCode", getRegionCode())
            .append("regionName", getRegionName())
            .append("orderNum", getOrderNum())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }

}
